﻿using Agile.Infra.WeiXin.Models;

namespace Agile.Infra.WeiXin
{
    public interface IAppletService
    {
        /// <summary> 小程序获取OpenID </summary> 
        Task<GetOpenIDResponse> GetOpenIDAsync(string code);

        /// <summary> 小程序获取AccessToken </summary> 
        Task<string> GetAccessTokenAsync();

        /// <summary> 小程序获取手机号 </summary> 
        Task<string> GetUserPhoneNumberAsync(string code, string openID);
    }
}
